﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy01
{
    class teacher : Person
    {
        private string Title;
        private string Wageno;

        public string TiTle{ 
        get  => Title;
        set => Title = value;
        }
        public string WagEno
        {
            get => Wageno;
            set => Wageno = value;
        }
        public void st() {
            Console.WriteLine("我是{0},id是{1},性别是{2},身份证号是{3},联系方式是{4},职称是{5},工资号是{6}",
                base.NaMe,base.ID,base.SEx,base.CarDid,base.TEl,this.TiTle,this.WagEno) ;
        }
        public teacher(int Id,string Name,string Sex,string Cardid,string Tel,string Title,string Wageno)
            :base(Id, Name, Sex, Cardid, Tel) {
            this.TiTle = Title;
            this.WagEno = Wageno;
        }
    }
}
